<!-- Table Data -->


<fieldset>
<!--@if(Context::get('act') != 'dispShopToolManageProducts')-->
<div class="contentNavigation" >
    <ul class="sortDefault">
        <li><a href="{getUrl('act','dispShopToolAddAssociatedProducts')}">{$lang->add_associated_products}</a></li>
    </ul>
</div>
<!--@end-->
<legend>{$lang->product_management}</legend>
<form action="" method="post">
<table border="1" cellspacing="0" summary="{$lang->content_list}" class="tableData">
<thead>
<tr>
<th scope="col">
<input type="checkbox" class="inputCheck" onclick="jQuery('input.boxlist').click()" />
</th>
<th scope="col">{$lang->id}</th>
<th scope="col" class="title">{$lang->name}</th>
<th scope="col">{$lang->product_type}</th>
<th scope="col">{$lang->sku}</th>
<th scope="col">{$lang->price}</th>
<th scope="col">{$lang->qty}</th>
<th scope="col">{$lang->status}</th>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody>

<!--@if(empty($product_list))-->
<tr>
    <td class="noData"|cond="(!$search&&!$filterCategory)||!$productsCount" colspan="9">
        <div cond="($search||$filterCategory)&&$productsCount" style="text-align: center; font-weight: bold;">
            <p>No products
                <span cond="$filterCategory">
                    in <span cond="$search">in </span> {$lang->category} "<a href="{$filterCategory->getLinkBackend()}" style="color: #EA3F22">{$filterCategory->title}</a>"
                </span>
                <span cond="$search">
                     with a {$column?$column:'title'} like *<span style="color: #EA3F22" cond="$search">{$search}</span>*
                </span>
            </p>
        </div>
        <p cond="(!$search&&!$filterCategory)||!$productsCount">
            {sprintf($lang->no_product,getUrl('','act','dispShopToolAddProduct'),getUrl('','act','dispShopToolAddConfigurableProduct'))}
        </p>
    </td>
</tr>
<!--@else-->
<!--@foreach($product_list as $no => $product_item)-->
<tr>
<td>
<input type="checkbox" name="product_srl" value="{$product_item->product_srl}" class="inputCheck boxlist" />
</td>
<td class="small">{$product_item->product_srl}</td>
<td class="title"><a href="{getUrl('act','dispShopToolEditProduct','product_srl',$product_item->product_srl)}" class="productTitle">{$product_item->title}</a></td>
<td class="small">{$product_item->product_type}</td>
<td class="small">{$product_item->sku}</td>
<td class="small">{ShopDisplay::priceFormat($product_item->price,$shop->getCurrencySymbol())}</td>
<td class="small">{number_format($product_item->qty,2)}</td>
<td class="small">{$product_item->status}</td>
<td>
<span class="btnGray small"><a href="{getUrl('act','dispShopToolEditProduct','product_srl',$product_item->product_srl)}">{$lang->cmd_edit}</a></span>
</td>
<td>
    <!--@if($product_item->product_type != 'configurable')-->
        <span class="btnGray small"><a href="{getUrl('act','procShopToolInsertDuplicate','product_srl',$product_item->product_srl)}">{$lang->cmd_duplicate}</a></span>
    <!--@endif-->
</td>
<td>
<button type="button" class="btnTableData" onclick="deleteProductItem({$product_item->product_srl},'{$product_item->product_type}')"><span>{$lang->cmd_delete}</span></button>
</td>
</tr>
<!--@end-->
<!--@end-->

</tbody>
</table>

<div class="listFooter">

<!-- Change-->
<div class="change" cond="$productsCount">
<p class="p1">{$lang->selected_articles}</p>
<span class="btnGray large"><button type="button" onclick="deleteProductItems({$page})"><img src="img/buttonTableDataX.gif" width="7" height="7" alt="" class="icon" />{$lang->cmd_delete}</button></span>

</div>
<!-- /Change -->

<!-- Pagination -->
<!--@if($page_navigation && $page_navigation->page_count > 1)-->
<div class="pagination">
<a href="{getUrl('page','','mid',$mid)}" class="prev"><span>{$lang->first_page}</span></a>

<!--@while($page_no = $page_navigation->getNextPage())-->
<!--@if($page == $page_no)-->
<strong>{$page_no}</strong>
<!--@else-->
<a href="{getUrl('page',$page_no,'mid',$mid)}">{$page_no}</a>
<!--@end-->
<!--@end-->

<a href="{getUrl('page',$page_navigation->last_page,'module_srl','')}" class="next"><span>{$lang->last_page}</span></a>
</div>
<!--@endif-->
<!-- /Pagination -->

</div>

</form>
</fieldset>
<script type="text/javascript">
if (!xe.lang) xe.lang = {};
xe.lang.msg_confirm_delete_product = '{$lang->msg_confirm_delete_product}';
xe.lang.msg_confirm_delete_products = '{$lang->msg_confirm_delete_products}';
</script>
<!-- /Table Data -->